import "./App.css"
import React from "react";

import { Switch, Route, Redirect} from 'react-router-dom'
import { Layout } from 'antd';

import Login from "./pages/Login/login";
import Register from "./pages/Register/register";
import Index from "./pages/Index/index";


// 整体布局
function App() {
  return (
    <Layout style={{ height:'100%',background:'#29282c' }}>
      <Switch>
        <Route path="/login" component={Login}/>
        <Route path="/register" component={Register}/>
        <Route path="/index" component={Index}/>
        <Redirect to="/login" />
      </Switch>
    </Layout>
  );
}

export default App;
